 var tools = {
     queryString: function() {
         var search = location.search.slice(1);
         var searchArr = search.split('&');
         var queryObj = {};
         for (var i = 0; i < searchArr.length; i++) {
             var temp = searchArr[i].split('=');
             queryObj[temp[0]] = temp[1];
         }
         return queryObj;
     }
 }